package com.ssmtest.service;

import java.util.List;


import com.ssmtest.entity.PageBean;
import com.ssmtest.entity.Student;
import com.ssmtest.entity.Subject;
import com.ssmtest.entity.User;
import com.ssmtest.util.Page;
import com.ssmtest.util.PageResult;


public interface StudentService {
	//判断是否为合法学生，决定是否登录
	 Student allowLogin(String studentID, String password);
	//获得学生的信息 单个
	 Student getStudentInfo(String studentID);
	//设置学生成绩
	 void setStudentResult(String studentID,int result);
	//根据学生的姓名查找信息
	 List<Student> getStudentByName(String studentName);
	//根据班级查找学生
	 PageResult getStudentByClass(String sclass, Page page);
	//保存一个学生记录
	 void saveStudent(Student student);
	//根据分页查询学生记录
	 PageResult queryStudentByPage(Page page);
	//获取学生数量
	 int countStudent();

	 int countStudentByClass(String sclass);
	 int insertSelective(String studentID,String studentName, String sclass);
	 int updateByPrimaryKeySelective(String studentID,String studentName, String sclass);
	 PageBean<Student> findByPage(int currentPage);
	PageBean<Subject> findByPagexuanze(int currentPage);
	List<Student> selectbyclass(String sclass);
	List<Student> selectbyname(String studentName);
	List<Student> selectbyid(String studentName);
	int insertxuanzesubject(String stTitle,String stOptionA,String stOptionB,String stOptionC,String stOptionD,String stAnswer,String stParse);
	int inserttiankongsubject(String stTitle,String stAnswer,String stParse);
	int insertpanduansubject(String stTitle,String stAnswer,String stParse);
	int insertwendasubject(String stTitle,String stAnswer,String stParse);


}
